<template>
  <div>
    <el-button type="danger" @click="getUuid">生成uuid</el-button>
    {{ uuid }}
  </div>
</template>

<script setup lang="ts">
import { buildShortUUID } from '@/utils/uuid';
import { ref } from 'vue';

const uuid = ref<any>('');
const getUuid = () => {
  uuid.value = buildShortUUID();
};
</script>

<style scoped lang="scss"></style>
